package com.arcbees.test.collaborative.client.diffsync;

import java.util.List;

import com.arcbees.test.collaborative.client.collaborativetext.CursorOffset;
import com.arcbees.test.collaborative.shared.diffsync.Edits;

public interface DifferentialSync {
  void onTextChange(String newText);

  ApplyEditsResultOffset onEditsReceived(List<Edits> editsList, CursorOffset cursor);

  void restore(String text, int clientVersion, int serverVersion);

  String getText();
}
